package com.ergou.easylive.admin.properties;

import lombok.Getter;
import lombok.Setter;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * Jwt 属性配置
 *
 * @author Er-Gou
 * @date 2025-09-16 23:04
 */
@Getter
@Setter
@Component
@ConfigurationProperties(prefix = "jwt")
public class JwtProperties {
    /**
     * 请求头名称，默认: Authorization
     */
    public String requestHeader = "Authorization";

    /**
     * Token前缀，默认: Bearer
     */
    public String tokenPrefix = "Bearer ";

    /**
     * JWT 密钥（必须配置）
     */
    public String secretKey;

    /**
     * Token过期时间（秒），默认: 7200 (2小时)
     */
    public Long expiration = 7200L;

}
